<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class WithDraWal extends Model
{

    protected $table = 'withdrawal';
    const CLOSED = 1;

    public $fillable = ['state','user_id','amount'];
    public function isClosed()
    {
        return $this->state == self::CLOSED;
    }
}
